class OrderIncubationDetailModel {
  dynamic? cancelTime;
  String? closeTime;
  String? collectionName;
  List<ConsumeConditionList>? consumeConditionList;
  int? count;
  String? coverImageUrl;
  String? createTime;
  dynamic? currentTime;
  String? daoName;
  List<HoldConditionList>? holdConditionList;
  int? id;
  String? orderCode;
  String? orderStatus;
  String? payPrice;
  String? payTime;
  String? payType;
  dynamic? platformEarnings;
  String? productType;
  dynamic? serviceCharge;
  String? singlePrice;
  List<dynamic>? tokenIdList;
  String? txHash;
  String? receivedAmount;

  OrderIncubationDetailModel({
    this.cancelTime,
    this.closeTime,
    this.collectionName,
    this.consumeConditionList,
    this.count,
    this.coverImageUrl,
    this.createTime,
    this.currentTime,
    this.daoName,
    this.holdConditionList,
    this.id,
    this.orderCode,
    this.orderStatus,
    this.payPrice,
    this.payTime,
    this.payType,
    this.platformEarnings,
    this.productType,
    this.serviceCharge,
    this.singlePrice,
    this.tokenIdList,
    this.txHash,
    this.receivedAmount,
  });

  OrderIncubationDetailModel.fromJson(Map<String, dynamic> json) {
    cancelTime = json["cancelTime"];
    closeTime = json["closeTime"];
    collectionName = json["collectionName"];
    consumeConditionList =
        json["consumeConditionList"] == null
            ? null
            : (json["consumeConditionList"] as List)
                .map((e) => ConsumeConditionList.fromJson(e))
                .toList();
    count = json["count"];
    coverImageUrl = json["coverImageUrl"];
    createTime = json["createTime"];
    currentTime = json["currentTime"];
    daoName = json["daoName"];
    holdConditionList =
        json["holdConditionList"] == null
            ? null
            : (json["holdConditionList"] as List)
                .map((e) => HoldConditionList.fromJson(e))
                .toList();
    id = json["id"];
    orderCode = json["orderCode"];
    orderStatus = json["orderStatus"];
    payPrice = json["payPrice"];
    payTime = json["payTime"];
    payType = json["payType"];
    platformEarnings = json["platformEarnings"];
    productType = json["productType"];
    serviceCharge = json["serviceCharge"];
    singlePrice = json["singlePrice"];
    tokenIdList = json["tokenIdList"] ?? [];
    txHash = json["txHash"];
    receivedAmount = json["receivedAmount"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["cancelTime"] = cancelTime;
    _data["closeTime"] = closeTime;
    _data["collectionName"] = collectionName;
    if (consumeConditionList != null) {
      _data["consumeConditionList"] =
          consumeConditionList?.map((e) => e.toJson()).toList();
    }
    _data["count"] = count;
    _data["coverImageUrl"] = coverImageUrl;
    _data["createTime"] = createTime;
    _data["currentTime"] = currentTime;
    _data["daoName"] = daoName;
    if (holdConditionList != null) {
      _data["holdConditionList"] =
          holdConditionList?.map((e) => e.toJson()).toList();
    }
    _data["id"] = id;
    _data["orderCode"] = orderCode;
    _data["orderStatus"] = orderStatus;
    _data["payPrice"] = payPrice;
    _data["payTime"] = payTime;
    _data["payType"] = payType;
    _data["platformEarnings"] = platformEarnings;
    _data["productType"] = productType;
    _data["serviceCharge"] = serviceCharge;
    _data["singlePrice"] = singlePrice;
    if (tokenIdList != null) {
      _data["tokenIdList"] = tokenIdList;
    }
    _data["txHash"] = txHash;
    _data["receivedAmount"] = receivedAmount;
    return _data;
  }
}

class HoldConditionList {
  String? conditionName;
  int? num;

  HoldConditionList({this.conditionName, this.num});

  HoldConditionList.fromJson(Map<String, dynamic> json) {
    conditionName = json["conditionName"];
    num = json["num"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["conditionName"] = conditionName;
    _data["num"] = num;
    return _data;
  }
}

class ConsumeConditionList {
  String? conditionName;
  int? num;

  ConsumeConditionList({this.conditionName, this.num});

  ConsumeConditionList.fromJson(Map<String, dynamic> json) {
    conditionName = json["conditionName"];
    num = json["num"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["conditionName"] = conditionName;
    _data["num"] = num;
    return _data;
  }
}
